#!/usr/bin/python
# -*- coding: UTF-8 -*-

print ("Content-type:text/html")
                    
print ("<html>")
print ("<head>")
print ("<meta charset='utf-8'>")
print ("<title>Hello World </title>")
print ("</head>")
print ("<body>")
print ("<h2>Hello World!</h2>")
print ("</body>")
print ("</html>")

#  控制台执行 python -m http.server --cgi 8080 启动server

# from http.server import HTTPServer, CGIHTTPRequestHandler
# port = 8080
# httpd = HTTPServer(('', port), CGIHTTPRequestHandler)
# print("Starting simple_httpd on port: " + str(httpd.server_port))
# httpd.serve_forever()pyinstaller -F